include_directories(
    ${PROJECT_SOURCE_DIR}
    ${PROJECT_SOURCE_DIR}/framework/core
    ${PROJECT_SOURCE_DIR}/framework/inc/exinc
    ${PROJECT_SOURCE_DIR}/framework/inc/osinc
    ${PROJECT_SOURCE_DIR}/framework/src/osimp
    ${PROJECT_SOURCE_DIR}/deps/idl
    generated
)
LINK_DIRECTORIES(
    ${PROJECT_SOURCE_DIR}/deps/fdbus/build
    ${PROJECT_SOURCE_DIR}/deps/protobuf/build
    ${PROJECT_BINARY_DIR}/deps/protobuf/cmake
)

add_custom_target(
    genidlSWUpdate
    COMMAND "${PROJECT_SOURCE_DIR}/business/CameraDiag/genidl.sh"
)


set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/home/bin)
add_executable(testSWUpdate BeansExtern.cpp tests/testClient.cpp servlet/SWUpdateImp.cpp generated/ISWUpdate.cpp)

target_link_libraries(testSWUpdate core dl eximp osimp common_base)

add_dependencies(testSWUpdate genidlSWUpdate)
